package com.ashapo.example;

public class Example019Interface {

    public static void main(String[] args) {
        A6 obj = new A6();
        obj.print();

        TestTnterface3 obj2 = new TestTnterface3();
        obj2.print();
    }
}

interface printable {
    void print();
}

class A6 implements printable {
    public void print() {
        System.out.println("Hello, Interface");
    }
}

//测试接口多继承

interface Printable2 {
    void print();
}

interface Showable2 {
    void print();
}

class TestTnterface3 implements Printable2, Showable2 {
    public void print() {
        System.out.println("Hello");
    }
}